<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:thSys="">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Blog</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header" style="background-color: black ">
        <div class="layui-logo">Blog</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img th:src="${head}" class="layui-nav-img">
                    [[${name}]]
                </a>
<!--                <dl class="layui-nav-child">-->
<!--                    <dd><a href="">基本资料</a></dd>-->
<!--                </dl>-->
            </li>
            <li class="layui-nav-item"><a href="/logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black" style="background-color: black;">
        <div class="layui-side-scroll" style="background-color: black;">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test" style="background-color: black">
                <li class="layui-nav-item"><a href="#" id="home_button">主页</a></li>
                <li class="layui-nav-item"><a href="#" id="edit_article_button">写文章</a></li>
                <li class="layui-nav-item"><a href="#" id="my_article_button">我的文章</a></li>
                <li class="layui-nav-item"><a href="#">我的收藏</a></li>
                <li class="layui-nav-item"><a href="#" id="information_button">基本资料</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe src="/html/home.html" frameborder="0" id="home" style="width: 100%; height: 99%; "></iframe>
        <iframe src="/html/editarticle.html" frameborder="0" id="edit_article" style="width: 100%; height: 100%;" hidden></iframe>
        <iframe src="/html/myarticle.html" frameborder="0" id="my_article" style="width: 100%; height: 99%;" hidden></iframe>
        <iframe src="/html/information.html" frameborder="0" id="information" style="width: 100%; height: 100%;" hidden></iframe>
    </div>

<!--    <div class="layui-footer" >-->
<!--        &lt;!&ndash; 底部固定区域 &ndash;&gt;-->
<!--        Blog-->
<!--    </div>-->
</div>
<script src="/layui/layui.js"></script>
<script src="/js/jquery-3.5.1.js"></script>
<script src="/js/myblog.js"></script>

<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
</body>
</html>